package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author lxp
 * @since 2024-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Building对象", description="")
public class Building extends Model<Building> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "buildingId", type = IdType.AUTO)
    private Integer buildingId;

    @TableField("Area_areaId")
    private Integer areaAreaid;

    @TableField("floorNum")
    private Integer floorNum;

    @TableField("roomType")
    private String roomType;

    @TableField("roomNum")
    private Integer roomNum;

    @TableField("bedNum")
    private Integer bedNum;

    @TableField("buildingName")
    private String buildingName;

    @ApiModelProperty(value = "是否删除")
    @TableField("isDeleted")
    @TableLogic
    private Boolean deleted;


    @Override
    protected Serializable pkVal() {
        return this.buildingId;
    }

}
